num = 100

for i in range(1, num + 1):
    #判断当前数是否能被7整除或包含7
    if i % 7 == 0 or '7' in str(i):
        print(i, end=' ')
